define([
	'app',
	'lodash',
	'services/TipsService',
	"resources/DoubleAuthorityResource",
	"controllers/company/ReAuthController"
	
], function(app, _ ) {

	var deps = [ '$state', 'TipsService' ,"$modal","$window","$state"];

	function directive($state, TipsService,$modal) {
		return {
			link: function ($scope, elem) {
                elem.on("click", function () {
                    var modalInstance = $modal.open({
                        templateUrl: 'company/recruit/ReAuth.html',
                        controller: "ReAuthController",
                        backdrop : "static",
                        keyboard: false,
                        resolve : {
                        	conferenceId : function() {
                                return $scope.id1;
                            },
                            bookId : function(){
                                return $scope.id2;
                            },
                            conferenceType : function(){
                                return $scope.type;
                            }
                        },
                        windowClass : "conpany-add-modal"
                    });

                    modalInstance.result.then(function(data) {
                    	
                    });
                });
            }
		};
	}

	directive.$inject = deps;
	return app.lazy.directive('fcReAuth', directive);
});